import requestUtils from '@/common/utils/requestUtils.js'
import commonConstants from '@/common/constants/commonConstants.js'

export default {
	HOT_WORK_LEVE: [{
		text: "特级动火",
		value: "0"
	}, {
		text: "一级动火",
		value: "1"
	}, {
		text: "二级动火",
		value: "2"
	}, {
		text: "其他动火",
		value: "3"
	}],
	HOT_WORK_GAS_DETECTION: [{
		text: "硫化氢H2S ppm",
		name: 'H2S(< 7ppm)',
		key: 'H2SValue',
		value: "",
		show: true
	}, {
		text: "一氧化碳CO ppm",
		name: 'CO(< 25ppm)',
		key: 'COValue',
		value: "",
		show: true
	}, {
		text: "氧气02(19%-21%)",
		name: 'O2(19.5%-21%)',
		key: 'O2Value',
		value: "",
		show: true
	}, {
		text: "爆炸下限LEL %",
		name: '可燃气EX(<10%LEL)',
		key: 'EXValue',
		value: "",
		show: true
	}, {
		text: "检测人员姓名",
		name: '检测人员姓名',
		key: 'userName',
		value: "",
		show: true
	}, {
		text: "检测时间",
		name: '检测时间',
		key: 'detectionTime',
		value: "",
		show: false
	}],

	/**
	 * 获取数据字典
	 */
	getDictionaryComboByParentDictionaryCode(params, successCallback) {
		let url = commonConstants.request.context.path.auth +
			"/basedata/dictionary/getDictionaryComboByParentDictionaryCode";

		return requestUtils.getListByCondition(url, params, successCallback)
	},

	getTaskSetUserNameList(params, successCallback) {
		let url = commonConstants.request.context.path.auth +
			"/psm/approvalset/getTaskSetUserNameList";

		return requestUtils.getInfoByCondition(url, params, successCallback)
	}
}